#include <string.h>
#include <stdio.h>
#define N 100
int main()
{ 	 	  	 	 
    char string1[N], string2[N];
    int i = 0, j;
    printf("Please Enter String1:\n");
    gets(string1);                  //1
    while (string1[i] != '\0')      //1
    { 	 	  	 	 
        string2[i] = string1[i];    //1
        i++;                        //1
    }
    for (j = 0; j < i; j++)         //1
    { 	 	  	 	 
        string1[j] = string2[i - 1 - j]; //2
    }
    printf("Result is:\n%s\n", string1);
    return 0;
} 	 	  	 	 
